package learnFactoryPattern;

import pizzaTypes.CaliforniaStyleBizarrePizza;
import pizzaTypes.Pizza;

public class CaliforniaPizzaStore extends PizzaStore {

	@Override
	Pizza createPizza(String type) {
		Pizza pizza = null;
		if(type.equals("bizarre")) {
			pizza = new CaliforniaStyleBizarrePizza();
		}
		return pizza;
	}

}
